package com.tjh.limit;

import static com.tjh.util.RandomNum.randomNum;

/**
 * @Description : 防止被除数为零
 **/
public class NotDivByZero {
    public static int notDivByZero(int num){
        while(num == 0){
            num = randomNum();
        }
        return num;
    }
}
